﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DARE;
using Microsoft.Xna.Framework;

namespace DARE
{
    /// <summary>
    /// This is a widget containing only an inventory.
    /// Used in CBook for example.
    /// </summary>
    [AttrTypeDependentSerializable(typeof(CInventoryPageData))]
    public class CInventoryPage: CWidget
    {
        #region fields

        private CInventory m_inventory;

        #endregion

        #region properties

        public CInventory Inventory { get { return m_inventory; } set { m_inventory = value; } }

        #endregion

        #region ctor

        public CInventoryPage(CHUDSystem hud, CWidget parent, string name)
            :base(hud, parent, name)
        {
            DARE.CInventory inv = new DARE.CInventory(hud, null, name + "_inventory");
            inv.Show();
        }

        #endregion
    }
}
